package com.fulu.spring;

import com.fulu.spring.config.DefaultConfig;
import com.fulu.spring.service.StudentService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(DefaultConfig.class);
        StudentService studentService = context.getBean("studentService", StudentService.class);
        studentService.test();
    }
}
